

#define UART_STATE (*(unsigned int*)0x00100008)
#define UART_DATA  (*(unsigned int*)0x00100004)

#define AXI_TEST_REG1 (*(unsigned int*)0x00000000)
#define AXI_TEST_REG2 (*(unsigned int*)0x00000004)
#define AXI_TEST_REG3 (*(unsigned int*)0x00000008)
#define AXI_TEST_REG4 (*(unsigned int*)0x0000000c)


int main() {
  unsigned int reg1,reg2,reg3,reg4;
  //while(!(UART_STATE & 0x2));
  AXI_TEST_REG1 = 1;
  AXI_TEST_REG2 = 2;
  AXI_TEST_REG3 = 3;
  AXI_TEST_REG4 = 4;
  reg1 = 1;
  reg2 = 2;
  reg3 = 2;
  reg4 = 2;
 
  reg1 = reg1 + 1;
  reg2 = reg2 + 2;
  reg3 = reg3 + 3;
  reg4 = reg4 + 4;
 
  reg1 = AXI_TEST_REG1;
  reg1 = reg1 + 2;
  AXI_TEST_REG1 = reg1;

  reg2 = AXI_TEST_REG2;
  reg2 = reg1 + 5;
  AXI_TEST_REG2 = reg2;

  reg3 = AXI_TEST_REG3;
  reg3 = reg3 + 2;
  AXI_TEST_REG3 = reg3;

  reg4 = AXI_TEST_REG4;
  reg4 = reg4 + 2;
  AXI_TEST_REG4 = reg4;
 
  return 0;
}
